package com.sxt.atm;

import java.awt.EventQueue;
import javax.swing.JButton;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

public class RegView extends JFrame {

	private JPasswordField passField2;
	private JPasswordField passField;
	private JTextField addressField;
	private JTextField phoneField;
	private JTextField idField;
	private JTextField nameField;
	private JTextField userField;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Launch the application
	 * 
	 * @param args
	 */
	public static void main(String args[]) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					RegView frame = new RegView();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame
	 */
	public RegView() {
		super();
		getContentPane().setLayout(null);
		setTitle("用户注册");
		setBounds(100, 100, 252, 335);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		final JLabel userName = new JLabel();
		userName.setText("帐号");
		userName.setBounds(51, 44, 46, 18);
		getContentPane().add(userName);

		final JLabel passWD = new JLabel();
		passWD.setText("密码");
		passWD.setBounds(51, 68, 46, 18);
		getContentPane().add(passWD);

		final JLabel name = new JLabel();
		name.setText("用户名");
		name.setBounds(50, 130, 52, 18);
		getContentPane().add(name);

		final JLabel phoneNum = new JLabel();
		phoneNum.setText("手机号");
		phoneNum.setBounds(50, 190, 52, 18);
		getContentPane().add(phoneNum);

		final JLabel address = new JLabel();
		address.setText("地址");
		address.setBounds(55, 225, 39, 18);
		getContentPane().add(address);

		final JLabel id = new JLabel();
		id.setText("身份证号");
		id.setBounds(45, 156, 52, 18);
		getContentPane().add(id);

		userField = new JTextField();
		userField.setBounds(110, 40, 87, 22);
		getContentPane().add(userField);

		nameField = new JTextField();
		nameField.setBounds(111, 124, 87, 22);
		getContentPane().add(nameField);

		idField = new JTextField();
		idField.setBounds(111, 155, 87, 22);
		getContentPane().add(idField);

		phoneField = new JTextField();
		phoneField.setBounds(111, 189, 87, 22);
		getContentPane().add(phoneField);

		addressField = new JTextField();
		addressField.setBounds(111, 224, 87, 22);
		getContentPane().add(addressField);

		passField = new JPasswordField();
		passField.setBounds(110, 69, 87, 22);
		getContentPane().add(passField);

		final JButton ok = new JButton();
		ok.setText("提交");
		ok.setBounds(51, 263, 75, 28);
		getContentPane().add(ok);

		final JButton reset = new JButton();
		reset.setText("重置");
		reset.setBounds(138, 263, 75, 28);
		getContentPane().add(reset);

		final JLabel passWD2 = new JLabel();
		passWD2.setText("确认密码");
		passWD2.setBounds(40, 100, 66, 18);
		getContentPane().add(passWD2);

		passField2 = new JPasswordField();
		passField2.setBounds(110, 96, 87, 22);
		getContentPane().add(passField2);

		final JLabel title = new JLabel();
		title.setText("用户注册");
		title.setBounds(95, 10, 66, 18);
		getContentPane().add(title);
		//
	}

}
